import service from "@/utils/request";

export const upload = function(formData){
    return service({
        url: "/uploadVideo",
        method: "POST",
        data:formData,
        headers:{
            isToken: true,
            'Content-Type': 'multipart/form-data',
        },
    })
}

export const getVideoData = function (){
    return service({
        url: "/getVideoData",
        method: "GET",
        query:{

        },
        headers:{
            isToken: false
        }
    })
}

export const getVideoDataById = (videoId)=>{
    return service({
        url: `/getVideoDataById?videoId=${videoId}`,
        method: "GET",
        headers:{
            isToken: false
        }
    })
}
